Report post

How do Dax comments work?

The lines are executed by the DAX optimizer and therefore act as ‘sticky notes’ in the code snippet. There are two ways of writing comments in DAX: Single line comments. Multi-line comments. Single line comments begin with the ‘//’ symbol and are automatically terminated as the line ends. Single line comments span one line only.

How do you write a comment in Dax?

In DAX you can write commentary using double forward slash characters in one line (//) Or you can use /* and */ to write comment in multiple lines; Comments are not executable, and will not impact on the performance or result of the DAX expression. And finally the heart of DAX expression is filled with usage of functions.

What are Dax variables & comments?

Variables and comments in DAX can: Improve code readability: using simple understandable DAX variables, a DAX expression becomes easier to understand and interpret. Reduce Complexity: the expressions stored in variables become reusable and can be referred in other functions.

The World's Leading Crypto Trading Platform

Get my welcome gifts